//
//  TF_inviteCell.m
//  个人资料
//
//  Created by 莫瑞权 on 2022/12/12.
//  Copyright © 2022 ix. All rights reserved.
//

#import "TF_inviteCell.h"
#import "TF_inviteView.h"
@implementation TF_inviteCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.showImage = [[UIImageView alloc]init];
        [self.contentView addSubview:self.showImage];
        self.showImage.contentMode = UIViewContentModeScaleAspectFill;
        
        self.backgroundColorView = [[UIView alloc]init];
        [self.contentView addSubview:self.backgroundColorView];
        self.backgroundColorView.hidden = true;
        self.backgroundColorView.backgroundColor = [UIColor colorWithRed:0/255.0 green:0/255.0 blue:0/255.0 alpha:0.32];
        
        //选中皮肤
        self.SelectedImageView = [[UIImageView alloc]init];
        self.SelectedImageView.hidden = true;
        [self.contentView addSubview:self.SelectedImageView];
        self.SelectedImageView.contentMode = UIViewContentModeScaleToFill;
        UIImage *newImage = [TF_inviteView getImage:@"选中皮肤"];
 
        self.SelectedImageView.image = newImage;
        
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    self.showImage.frame = self.bounds;
    self.backgroundColorView.frame = self.bounds;
    self.SelectedImageView.frame = CGRectMake((self.frame.size.width-20)/2, (self.frame.size.height-20)/2, 20, 20);
}

@end
